/**
 * author      : dormi330
 * date        : 2018/6/26
 * project     : mybatis
 * description : adaptor sku
 */

package org.wzq.learn.adaptor;

import org.wzq.learn.common.BaseEntity;
import org.wzq.learn.utils.CommonUtils;

import java.math.BigDecimal;

public class ItemSku extends BaseEntity {
    private String sellerId;
    private String shopId;
    private String itemId;
    private String brandId;

    private String sku;
    private BigDecimal price;

    public ItemSku() {
    }

    public ItemSku(String sellerId, String itemId, String skuId) {
        super();
        this.setId(skuId);
        this.setTenantCode(IdService.TENANT_CODE);
        this.setCreatedBy(sellerId);
        this.setUpdatedBy(sellerId);

        this.setSellerId(sellerId);
        this.setShopId(CommonUtils.uuid());
        this.setItemId(itemId);
        this.setBrandId(IdService.BRAND_ID);
        this.sku = sku;
        this.price = new BigDecimal("100");
    }


    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}
